<?php

class Announcement_Form_Admincp_Add extends Nuo_Form
{
	function init()
	{

		$this -> addChild('text', 'title', array(
			'label' => 'Title',
			'rules' => array('required')
		));

		$this -> addChild('yesno', 'is_enabled', array(
			'label' => 'Public',
			'value' => 0,
		));

		$this -> addChild('textarea', 'content', array(
			'label' => 'Content',
			'class' => 'mceEditor',
			'rules' => array('required')
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
